﻿<Window x:Class="G_Box.PreWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
        xmlns:cal="clr-namespace:Microsoft.Practices.Prism.Regions;assembly=Microsoft.Practices.Prism" 
        xmlns:region="clr-namespace:MessageModule.RegionTypes;assembly=MessageModule"
        Title="登陆" AllowsTransparency="True" WindowStyle="None" Background="{x:Null}" 
        Height="254" Width="380" x:Name="preWindow" WindowStartupLocation="CenterScreen">
    <i:Interaction.Triggers>
        <i:EventTrigger EventName="Closing">
            <i:InvokeCommandAction Command="{Binding CloseCommand}"/>
        </i:EventTrigger>
    </i:Interaction.Triggers>

    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <!--总颜色样式定义-->
                <ResourceDictionary Source="pack://application:,,,/Resources;component/Styles/Themes/Colors.xaml"/>
                <!--总文字样式定义-->
                <ResourceDictionary Source="pack://application:,,,/Resources;component/Styles/Themes/Texts.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid>
        <ListBox x:Name="preViews" Width="380" Style="{DynamicResource ListBoxStyle1}" 
                 BorderBrush="{x:Null}" HorizontalAlignment="Left" Margin="0,4,0,0">
            <ListBoxItem x:Name="logolView"  Style="{DynamicResource ListBoxItemStyle1}" BorderThickness="0" Width="380">
                <ListBoxItem.Content>
                    <Grid>
                        <ContentControl  Height="250" Width="380" Name="LogolRegion" cal:RegionManager.RegionName="{x:Static region:RegionTypes.LogolRegion}" VerticalAlignment="Top"/>
                    </Grid>
                </ListBoxItem.Content>
            </ListBoxItem>

            <ListBoxItem x:Name="loginView" Style="{DynamicResource ListBoxItemStyle1}" BorderThickness="0" Width="380">
                <ListBoxItem.Content>
                    <Grid>
                        <ContentControl  Height="250" Width="380" Name="LoginRegion" cal:RegionManager.RegionName="{x:Static region:RegionTypes.LoginRegion}" VerticalAlignment="Top"/>
                    </Grid>
                </ListBoxItem.Content>
            </ListBoxItem>

            <ListBoxItem x:Name="registerView" Style="{DynamicResource ListBoxItemStyle1}" BorderThickness="0" Width="380">
                <ListBoxItem.Content>
                    <Grid>
                        <ContentControl  Height="250" Width="380" Name="RegisterRegion" cal:RegionManager.RegionName="{x:Static region:RegionTypes.RegisterRegion}" VerticalAlignment="Top"/>
                    </Grid>
                </ListBoxItem.Content>
            </ListBoxItem>

            <ListBoxItem x:Name="resetView" Style="{DynamicResource ListBoxItemStyle1}" BorderThickness="0" Width="380">
                <ListBoxItem.Content>
                    <Grid>
                        <ContentControl Height="250" Width="380" Name="FindRegion" cal:RegionManager.RegionName="{x:Static region:RegionTypes.ResetRegion}" VerticalAlignment="Top"/>
                    </Grid>
                </ListBoxItem.Content>
            </ListBoxItem>
        </ListBox>
		<Button Style="{StaticResource TipBtn}" ClickMode="Hover" Height="50" Width="33.5" Content="{StaticResource title}" Margin="20,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top">
			<i:Interaction.Triggers>
                <i:EventTrigger EventName="MouseLeftButtonDown">
                    <i:InvokeCommandAction Command="{Binding DragCommand}" CommandParameter="{Binding ElementName=preWindow}"/>
                </i:EventTrigger>
            </i:Interaction.Triggers>
		</Button>
		<!--
		<Path Width="33" Height="50" Data="M33.5,0 L33.5,4 30.5,4 z M3,0 L33,0 30,4 30,50 15,40 0,50 0,4 z M15.332499,12.915862 C17.005086,12.915862 21.813686,9.2784668 24.322539,13.643322 26.831392,18.008178 26.204179,23.828 24.531645,23.828 20.350206,23.828 22.859059,20.190605 15.332499,20.190605 7.80594,20.190605 10.314793,23.828 6.1333536,23.828 4.46082,23.828 3.8336068,18.008178 6.3424599,13.643322 8.8513131,9.2785127 13.659913,12.915862 15.332499,12.915862 z M9.4785264,14.552682 L9.4785264,15.825796 8.0149935,15.825796 8.0149935,17.280717 9.4785264,17.280717 9.4785264,18.55383 11.15106,18.55383 11.15106,17.280717 12.614593,17.280717 12.614593,15.825796 11.15106,15.825796 11.15106,14.552682 9.4785264,14.552682 z M19.095779,15.462043 C18.633886,15.462043 18.25946,15.787753 18.25946,16.189503 18.25946,16.5913 18.633886,16.91701 19.095779,16.91701 19.557619,16.91701 19.932046,16.5913 19.932046,16.189503 19.932046,15.787753 19.557619,15.462043 19.095779,15.462043 z M20.768366,14.188929 C20.306473,14.188929 19.932046,14.514639 19.932046,14.916436 19.932046,15.318186 20.306473,15.643896 20.768366,15.643896 21.230206,15.643896 21.604632,15.318186 21.604632,14.916436 21.604632,14.514639 21.230206,14.188929 20.768366,14.188929 z M20.768366,16.916964 C20.306473,16.916964 19.932046,17.242674 19.932046,17.64447 19.932046,18.046221 20.306473,18.371931 20.768366,18.371931 21.230206,18.371931 21.604632,18.046221 21.604632,17.64447 21.604632,17.242674 21.230206,16.916964 20.768366,16.916964 z M22.440899,15.462043 C21.979059,15.462043 21.604632,15.787707 21.604632,16.189503 21.604632,16.5913 21.979059,16.916964 22.440899,16.916964 22.902792,16.916964 23.277219,16.5913 23.277219,16.189503 23.277219,15.787707 22.902792,15.462043 22.440899,15.462043 z M6.3278178,28.984 C6.9736639,28.984 7.5374776,29.075149 8.0192584,29.257446 L8.0192584,30.480139 C7.5504989,30.206693 6.9775703,30.06997 6.3004735,30.06997 C5.7171282,30.06997 5.2444624,30.26008 4.882476,30.6403 C4.5204894,31.02052 4.3394961,31.521837 4.3394963,32.144251 C4.3394961,32.777082 4.502911,33.270587 4.8297406,33.624764 C5.15657,33.978942 5.6025426,34.15603 6.1676583,34.15603 C6.5036024,34.15603 6.7783475,34.103945 6.9918938,33.999775 L6.9918938,32.757551 L5.7692127,32.757551 L5.7692127,31.722363 L8.2809824,31.722363 L8.2809824,34.730266 C7.6898244,35.071422 6.9632472,35.242 6.1012507,35.242 C5.1376894,35.242 4.3772573,34.971158 3.8199545,34.429476 C3.2626516,33.887793 2.984,33.146885 2.984,32.206753 C2.984,31.253599 3.2906469,30.478185 3.9039406,29.880511 C4.5172342,29.282838 5.3251935,28.984 6.3278178,28.984 z M9.3853797,32.374727 L11.69402,32.374727 L11.69402,33.265378 L9.3853797,33.265378 z M14.265531,32.515356 L14.265531,34.175562 L15.031172,34.175562 C15.356699,34.175562 15.611262,34.100039 15.794859,33.948993 C15.978457,33.797946 16.070255,33.588305 16.070255,33.320067 C16.070255,33.064852 15.979108,32.866929 15.796812,32.7263 C15.614517,32.58567 15.355397,32.515356 15.019453,32.515356 z M14.265531,30.046532 L14.265531,31.54267 L14.878825,31.54267 C15.173101,31.54267 15.404878,31.472356 15.574151,31.331727 C15.743425,31.191097 15.828063,30.994477 15.828063,30.741865 C15.828063,30.27831 15.489514,30.046532 14.812417,30.046532 z M12.976443,29.085566 L15.124924,29.085566 C15.783791,29.085566 16.291614,29.210569 16.648392,29.460577 C17.00517,29.710584 17.183559,30.056949 17.183559,30.49967 C17.183559,30.827805 17.07288,31.115575 16.851521,31.362978 C16.630162,31.610381 16.351511,31.780959 16.015567,31.874712 L16.015567,31.890337 C16.43745,31.942422 16.777952,32.098677 17.037072,32.359101 C17.296191,32.619526 17.425752,32.946358 17.425752,33.339599 C17.425752,33.889095 17.230435,34.325957 16.839802,34.650185 C16.449169,34.974414 15.915304,35.136528 15.238207,35.136528 L12.976443,35.136528 z M20.387997,31.679393 C20.057262,31.679393 19.800095,31.792678 19.616497,32.019247 C19.4329,32.245816 19.341101,32.566139 19.341101,32.980213 C19.341101,33.842219 19.692671,34.273221 20.39581,34.273221 C21.070304,34.273221 21.407549,33.8305 21.407549,32.945056 C21.407549,32.101281 21.067699,31.679393 20.387997,31.679393 z M20.419248,30.710614 C21.114575,30.710614 21.66667,30.91049 22.075532,31.310242 C22.484395,31.709993 22.688825,32.247119 22.688825,32.921618 C22.688825,33.629973 22.479186,34.193791 22.059906,34.613075 C21.640628,35.032358 21.072908,35.242 20.356747,35.242 C19.653608,35.242 19.095655,35.040822 18.682885,34.638466 C18.270117,34.23611 18.063733,33.688568 18.063733,32.995839 C18.063733,32.28488 18.276627,31.72627 18.702416,31.320007 C19.128206,30.913745 19.700484,30.710614 20.419248,30.710614 z M23.129096,30.816086 L24.590063,30.816086 L25.230701,32.058311 C25.293202,32.178106 25.351797,32.310923 25.406486,32.45676 L25.422111,32.45676 C25.448153,32.368216 25.508051,32.234097 25.601802,32.054404 L26.261972,30.816086 L27.637,30.816086 L26.207284,32.921618 L27.625281,35.136528 L26.16822,35.136528 L25.523676,33.945086 C25.435133,33.781019 25.373933,33.652109 25.340078,33.558356 L25.324453,33.558356 C25.277577,33.68336 25.218982,33.808363 25.148668,33.933367 L24.492405,35.136528 L23.043157,35.136528 L24.504124,32.988026 z" Fill="#FF6EB3F7" Margin="20,0" VerticalAlignment="Top" HorizontalAlignment="Left" Stretch="Fill"/>
		
        <Border x:Name="logolTitle" Height="30" Width="380" HorizontalAlignment="Left" VerticalAlignment="Top" BorderThickness="0,0,0,1" BorderBrush="#66FFFFFF" Background="#00000000">
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="MouseLeftButtonDown">
                    <i:InvokeCommandAction Command="{Binding DragCommand}" CommandParameter="{Binding ElementName=preWindow}"/>
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </Border>
		-->
    </Grid>
</Window>
